<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>编辑用户等级</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all">
</head>
<body>

<div class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">等级名称</label>
        <div class="layui-input-inline">
            <input type="text" id="rankname" name="loginname" placeholder="请输入名称" autocomplete="off" class="layui-input" th:value="${userRank.getRankname()}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">直推奖</label>
        <div class="layui-input-inline">
            <input type="text" id="recommend" name="recommend" placeholder="请输入直推奖" autocomplete="off" class="layui-input" th:value="${userRank.getRecommend()}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">店主节省</label>
        <div class="layui-input-inline">
            <input type="text" id="commission" name="commission" placeholder="请输入店主节省" autocomplete="off" class="layui-input" th:value="${userRank.getCommission()}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-inline">
            <input type="text" id="sort" name="sort" placeholder="请输入排序" autocomplete="off" class="layui-input" th:value="${userRank.getSort()}">
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-back-submit" value="确认">
    </div>
</div>

<script th:src="@{/layui/layui.js}"></script>
<script>
    layui.config({
        base: './' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form'], function(){
        var $ = layui.$
            ,form = layui.form ;
    })
</script>
</body>
</html>